package com.luyue.zagj.httpData;

import com.luyue.zagj.domin.DemoBean;
import com.luyue.zagj.domin.NewsGson;

import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by luyue on 2016/11/14.
 */

public interface DemoApi {
    @GET("/api/4/news/latest")
    Observable<DemoBean> getLastDaily();

    @GET("social/")
    Observable <NewsGson> getNewsData(@Query("key")String key, @Query("num") String num, @Query("page") int page);
}
